﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package reprise.css.transitions {
    import reprise.utils.*;

    public class ColorTransitionVO extends PropertyTransitionVO {

        override public function setCurrentValueToRatio(_arg1:Number){
            var _local2:Object = ColorUtil.number2rgbObject(startValue);
            var _local3:Object = ColorUtil.number2rgbObject(endValue);
            var _local4:Number = (_local2.r + ((_local3.r - _local2.r) * _arg1));
            var _local5:Number = (_local2.g + ((_local3.g - _local2.g) * _arg1));
            var _local6:Number = (_local2.b + ((_local3.b - _local2.b) * _arg1));
            var _local7:Number = (startValue.opacity() + ((endValue.opacity() - startValue.opacity()) * _arg1));
            currentValue.setRGBAComponents(_local4, _local5, _local6, _local7);
            return (currentValue);
        }

    }
}//package reprise.css.transitions 
